#pragma once
#include <QString>
#include <QUrl>

class QTcpSocket;

class HttpConnection: public QObject
{
	Q_OBJECT
public:
	HttpConnection(QTcpSocket* socket);
	~HttpConnection(void);

private slots:
	void onRequestData();
	void onResponseData();
	void onConnectionClose();

private:
	QTcpSocket *inSocket, *outSocket;
	QString request, response;
	QUrl address;
};
